local S = technic.getter

minetest.register_node("technic_batteries:granite_with_lithium", {
	description = "Lithium Ore",
	tiles = {"technic_granite.png^batteries_lithium_ore.png"},
	groups = {cracky = 3},
	drop = 'technic_batteries:lithium_lump',
	sounds = default.node_sound_stone_defaults(),
})

minetest.register_node("technic_batteries:stone_with_nickel", {
	description = "Nickel Ore",
	tiles = {"default_stone.png^batteries_nickel_ore.png"},
	groups = {cracky = 3},
	drop = 'technic_batteries:nickel_lump',
	sounds = default.node_sound_stone_defaults(),
})

minetest.register_ore({
	ore_type       = "scatter",
	ore            = "technic_batteries:granite_with_lithium",
	wherein        = "technic:granite",
	clust_scarcity = 12 * 12 * 12,
	clust_num_ores = 3,
	clust_size     = 2,
	y_min          = -15,
	y_max          = 2,
})

minetest.register_ore({
	ore_type       = "scatter",
	ore            = "technic_batteries:granite_with_lithium",
	wherein        = "technic:granite",
	clust_scarcity = 8 * 8 * 8,
	clust_num_ores = 5,
	clust_size     = 3,
	y_min          = -31000,
	y_max          = -16,
})

minetest.register_ore({
	ore_type       = "scatter",
	ore            = "technic_batteries:stone_with_nickel",
	wherein        = "default:stone",
	clust_scarcity = 14 * 14 * 14,
	clust_num_ores = 5,
	clust_size     = 3,
	y_min          = -310,
	y_max          = -52,
})
minetest.register_ore({
	ore_type       = "scatter",
	ore            = "technic_batteries:stone_with_nickel",
	wherein        = "default:stone",
	clust_scarcity = 13 * 13 * 13,
	clust_num_ores = 5,
	clust_size     = 3,
	y_min          = -31000,
	y_max          = -311,
})
